#ifndef SWITCH_PLUGIN_H_
#define SWITCH_PLUGIN_H_

#include "plugin_base.h"
#include "script_object_base.h"

// Plugin class for switch, it is used to create switch script object.
class SwitchPlugin : public PluginBase {
private:
  SwitchPlugin(void) {}
  virtual ~SwitchPlugin(void) {}

public:
  NPError Init(NPP instance,uint16_t mode, int16_t argc, char* argn[],
               char* argv[], NPSavedData* saved);
  NPError UnInit(NPSavedData** save);
  NPError GetValue(NPPVariable variable, void *value);

  // Create switch plugin object.
  static PluginBase* CreateObject() { return new SwitchPlugin; }

private:
  ScriptObjectBase* script_object_;

};

#endif